import http from '../utils/request'

export const getaddress = () => {
  return http({
    method: 'get',
    url: '/api/address'
  })
}

export const inaddress = (data) => {
  return http({
    method: 'post',
    url: '/api/address',
    data
  })
}

export const removeaddress = (id) => {
  return http({
    method: 'delete',
    url: '/api/address/' + id
  })
}
